// const express = require('express');
const express = require('./express/index.js');

const app = express();

app.get('/a', (req, res, next) => {
    console.log(1);
    next();
}, (req, res, next) => {
    console.log(2)
    res.end('111')
})

app.post('/a', (req, res, next) => {
    console.log('3')
    next();
}, (req, res, next) => {
    res.end('post ok');
})

app.listen(3000, () => {
    console.log('server is listen at port 3000');
})